﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
										xmlns:futaba="urn:futaba.sbus"
										xmlns:vm="clr-namespace:Futaba.SBus.SampleApplication.TelemetryLiveView"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<DataTemplate DataType="{x:Type vm:SlotWithHistory}">
		<Border BorderBrush="Silver" BorderThickness="1" Margin="5,5,0,0">
			<Grid>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" SharedSizeGroup="DisplayName" />
					<ColumnDefinition Width="*" SharedSizeGroup="CurrentValue" />
					<ColumnDefinition Width="Auto" SharedSizeGroup="ValueLabel" />
				</Grid.ColumnDefinitions>
				<Label Grid.Column="0" Content="{Binding DisplayName}" />
				<Label Grid.Column="0" Content="{Binding SlotValues.Count}"
							 HorizontalAlignment="Right" FontSize="7" Margin="0,-5,-15,0" />
				<Label Grid.Column="1" Content="{Binding CurrentValue}"
							 FontWeight="Bold"
							 HorizontalContentAlignment="Right"
							 ContentStringFormat="{Binding Parameter.ValueFormat}" />
				<Label Grid.Column="2" Content="{Binding Parameter.ValueLabel}" />
			</Grid>
		</Border>
	</DataTemplate>
</ResourceDictionary>